package me.sdevil507.org.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

/**
 * 绑定手机号码
 *
 * @author sdevil507
 * created on 2020/8/12
 */
@Data
public class OrgUserBindPhoneNumberDto {

    /**
     * 手机号码
     */
    @Pattern(regexp = "^(\\+?0?86-?)?1[3456789]\\d{9}$", message = "请输入正确手机号码!")
    private String phoneNumber;

    /**
     * 验证码
     */
    @Length(min = 6, max = 6, message = "请输入正确验证码!")
    private String code;
}
